package com.itcast.ssm.mapper;

import com.itcast.ssm.pojo.Order;
import com.itcast.ssm.response.OwnerOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author 三人行
 * @since 2020-09-12
 */
public interface OrderMapper {

    public List<OwnerOrder> findAll(@Param(value = "owner_id") Integer ownerId,
             @Param(value = "order_status") Integer orderStatus);

    public Integer delete(@Param(value = "order_id") Integer orderId);

    public Integer rentOut(@Param(value = "order_id") Integer orderId);
}
